<?php

use Illuminate\Database\Seeder;
use \Illuminate\Support\Facades\DB;

class RolesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        DB::table('roles')->insert([
            'id'=>1,
            'name' => 'admin',
            'display_name' => '管理员',
            'created_at' => date('Y-m-d H:i:s'),
            'updated_at' => date('Y-m-d H:i:s'),
        ]);
        DB::table('role_user')->insert([
            'role_id'=>'1',
            'user_id'=>'1'
        ]);
    }
}
